package com.lzj.server.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lzj.server.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Schema(name = "sys_role", description = "角色表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role")
public class Role extends BaseEntity {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "角色ID",hidden = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    Long id;
    @Schema(description = "角色名称")
    String roleName;
    @Schema(description = "角色编号")
    String roleCode;
    @Schema(description = "角色描述")
    String description;
}
